e4ed384d40bc90848adc6caf810b0d3e68a00cd8,src/main/java/net/jeremybrooks/suprsetr/Reaper.java,Reaper,run,#,46

Before Change



	LookupDAO.setKeyAndValue(SSConstants.LOOKUP_KEY_X, Integer.toString(rect.x));
	LookupDAO.setKeyAndValue(SSConstants.LOOKUP_KEY_Y, Integer.toString(rect.y));
	LookupDAO.setKeyAndValue(SSConstants.LOOKUP_KEY_WIDTH, Integer.toString(rect.width));
	LookupDAO.setKeyAndValue(SSConstants.LOOKUP_KEY_HEIGHT, Integer.toString(rect.height));

	logger.info("Compressing database tables...");

After Change


    public void run() {

        // save window position if possible
        if (MainWindow.getMainWindow() != null) {
            Rectangle rect = MainWindow.getMainWindow().getBounds();

            LookupDAO.setKeyAndValue(SSConstants.LOOKUP_KEY_X, Integer.toString(rect.x));
            LookupDAO.setKeyAndValue(SSConstants.LOOKUP_KEY_Y, Integer.toString(rect.y));
            LookupDAO.setKeyAndValue(SSConstants.LOOKUP_KEY_WIDTH, Integer.toString(rect.width));
            LookupDAO.setKeyAndValue(SSConstants.LOOKUP_KEY_HEIGHT, Integer.toString(rect.height));
        }
        logger.info("Compressing database tables...");